package com.myproject.myblogserver.dto.blog;

import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class BlogPreviewDto {
    private Long id;
    private Long authorId;
    private String authorName;
    private String authorAvatar;
    private String title;
    private String summary;
    private LocalDateTime createdAt;
    private List<String> tags;
    
    @JsonIgnore // 关键注解，阻止该字段被序列化到JSON
    private String tagsStr;
}
